package com.zxh.mall.product.feign;

import com.zxh.mall.common.dto.SkuReductionDTO;
import com.zxh.mall.common.dto.SpuBoundsDTO;
import com.zxh.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhengxh
 * @version 1.0
 * @date 2024/4/20 - 04 - 20 - 18:53
 * @description com.zxh.mall.product.feign
 */
@FeignClient("mall-coupon")
public interface CouponFeignService {


    @PostMapping("/coupon/skufullreduction/saveInfo")
    public R saveFullReductionInfo(@RequestBody SkuReductionDTO dto);

    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    //@RequiresPermissions("coupon:spubounds:save")
    public R saveSpuBounds(@RequestBody SpuBoundsDTO spuBounds);
}
